//
//  VRWebViewController.h
//  Rebate
//
//  Created by veer on 2017/7/1.
//  Copyright © 2017年 liuye. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <JavaScriptCore/JavaScriptCore.h>

@protocol WebViewJSExport  <JSExport>
JSExportAs
(upLoadAddressBook  /** handleFactorialback 作为js方法的别名 */,
 - (void)upLoadAddressBook:(NSString *)card
 );

JSExportAs
(onUploadLocation  /** handleFactorialback 作为js方法的别名 */,
 - (void)onUploadLocation:(NSString *)card
 );

JSExportAs
(onGetPicReq  /** handleFactorialback 作为js方法的别名 */,
 - (void)onGetPicReq:(NSString *)type
 );

JSExportAs
(upLoadSfsb  /** handleFactorialback 作为js方法的别名 */,
 - (void)upLoadSfsb:(NSString *)userid
 );


@end

@interface VRWebViewController : UIViewController

@property (nonatomic, copy) NSString *urlStr;

@property (nonatomic, assign) BOOL isHomeUrl;

@property (nonatomic, assign) BOOL isHaveNav;

/** sfzfhUrl身份证认证返回路径参数获取 */
@property (nonatomic, copy) NSString *sfzfhUrl;
/** txlfhUrl通讯录认证返回路径参数获取 */
@property (nonatomic, copy) NSString *txlfhUrl;
/** dlwzfhUrl地理位置认证返回路径参数获取 */
@property (nonatomic, copy) NSString *dlwzfhUrl;
/** 淘宝认证返回路径 */
@property (nonatomic, copy) NSString *tbrzfhUrl;
/** 身份证对接接口 */
@property (nonatomic, copy) NSString *sfsbJk;
/** 通讯录接口 */
@property (nonatomic, copy) NSString *txljk;
/** 地理位置接口 */
@property (nonatomic, copy) NSString *dlwJk;
/** 淘宝认证接口 */
@property (nonatomic, copy) NSString *tbJk;
/** 身份证识别度 */
@property (nonatomic, copy) NSString *sfzsbd;

- (void)reload;
- (void)loadUrlWith:(NSString *)urlStr;

@end
